from pydantic import BaseModel

class TTSRequest(BaseModel):
    text: str
    speed: int = 150
    volume: float = 0.9
    voice: str = "auto"

class TTSResponse(BaseModel):
    status: str
    filename: str
    url: str
    text: str  # 添加原文返回
    length: int  # 添加音频长度